import request from '@/utils/request'

const baseURL = '/enterpriseReporting'

// 查询企业上报信息
export function loadEnterpriseReporting () {
  return request({
    url: `${baseURL}/loadEnterpriseReporting`
  })
}

// 保存或更新企业上报信息
export function saveOrUpdate (data = []) {
  return request({
    url: `${baseURL}/saveOrUpdate`,
    method: 'post',
    data
  })
}

// 查询本年每月万元产值综合能耗
export function loadComprehensiveEnergyConsumptionOfOutputValue (tenantId) {
  return request({
    url: `${baseURL}/loadComprehensiveEnergyConsumptionOfOutputValue`,
    params: {
      tenantId
    }
  })
}

// 查询本年每月万元综合能耗产值
export function loadComprehensiveEnergyConsumptionOutputValue (tenantId) {
  return request({
    url: `${baseURL}/loadComprehensiveEnergyConsumptionOutputValue`,
    params: {
      tenantId
    }
  })
}

// 查询本年每月(工业总产值/增加值)的数据
export function loadIndustrialOutput (tenantId) {
  return request({
    url: `${baseURL}/loadIndustrialOutput`,
    params: {
      tenantId
    }
  })
}
